home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-04 | 6.8 KB | 198 lines | [TEXT/KAHL] |
- Tide Harmonic tide clock and tide predictor
- Version 1.3.3 1/4/96
- Copyright (C) 1996 Mikhail Fridberg
- Copyright (C) 1995 David Flater.
- Also starring: Jef Poskanzer; Jack Greenbaum; Rob Miracle;
- Geoff Kuenning; Dale DePriest.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-
- The tide prediction algorithm used in this program was developed
- with United States Government funding, so no proprietary rights
- can be attached to it. For more information, refer to the
- following publications:
-
- Manual of Harmonic Analysis and Prediction of Tides. Special
- Publication No. 98, Revised (1940) Edition. United States
- Government Printing Office, 1941.
-
- Computer Applications to Tides in the National Ocean Survey.
- Supplement to Manual of Harmonic Analysis and Prediction of Tides
- (Special Publication No. 98). National Ocean Service, National
- Oceanic and Atmospheric Administration, U.S. Department of
- Commerce, January 1982.
-
-
- THIS PACKAGE IS AVAILABLE FOR ANONYMOUS FTP FROM:
- ftp://speckle.ncsl.nist.gov/flater/sources/mactide133.hqx
- (original UNIX Tide and XTide sources)
- and
- ftp://caife.pfc.mit.edu/Pub/mactide133.hqx
- (My ftp-able Mac, Mac only sources and binary)
- (The version number may change.)
-
- Very nice description of Harmonics analyses of tides is available
- through www:
- http://math.math.sunysb.edu/~tony/tides/harmonic.html
-
- I took source code for UNIX version of TTY-based Tide program, and
- ported it for Mac. It is practically exact port from UNIX, so do
- not expect to find any Mac-like user interface in it (at least for now).
-
- For this program to work properly, you HAVE TO set up your
- Map and Date & Time control panels! This is VERY IMPORTANT!
-
- There are following differences between UNIX and Mac versions :
-
- -localtz switch is not supported, but ignored. No error generated,
- but all predictions are calculated using your local time.
-
- Daylight saving time is not supported. Since I don't know rules for
- DST switch in your particular area, I can't predict when DST
- switch is going to happen. Another words - if tide prediction
- spawn period of time when DST switch will happen, Tide will NOT
- take that switch into account and will use same time as before the
- switch. Users beware!
-
- None of the following switches are supported:
-
- -fgfall color
- -fgmark color
- -fgmiddle color
- -fgmllw color
- -fgrise color
- -fgtext color
- If you use them, they will be ignored.
-
- Tide has been tested under Mac IIsi, Mac IIsi with 68LC040 Carrera
- accelerator board, PowerPC (don't remember type :)). It is NOT PowerPC
- accelerated, but runs on it. It should be able to take advantage of FPU
- (or 68040), if present, but I haven't tested it. All computers I run it
- on were using Sys 7.5.X, but I see no reason for it not to run on any
- other systems. It's should be able to run with virtual memory, but I had
- not tested that either. It'll MultiFinder friendly and will work in the
- background.
-
- The source code compiles under Think C 5.0.4 I don't have Symanthec C++,
- CodeWarrior or MPW, so I can't provide you with any info on porting to
- those development systems.
-
- The Think C 5.0.4 project is included. If your system can't read it,
- here are the options used:
-
- Language Settings:
-
- #define _STDC_
- Recognize trigraphs
- Check pointer types
- Language extension - Think C
- Strict prototype enforcement - infer prototypes
-
- Compiler Settings:
-
- 4-byte ints
- 8-byte doubles
-
- Code Optimization:
-
- everything on
-
- Prefix:
-
- #include <MacHeaders>
-
- Set Project Type:
-
- Far CODE
- Far DATA
- Size Flags - 5880 (MultiFinder Aware, Background Null Events,
- Suspend & Resume Events, 32-bit compatible)
- Partition - 400K
-
- Files in the project:
-
- Segment 1:
- arglib.c
- tide.c
- tidelib.c
- Segment 2:
- ANSI-bytes
- Segment 3:
- MacTraps
-
-
- ANSI-4bytes is ANSI library that come with Think C 5.0.4, recompiled
- with same options as this project (including Far CODE and Far DATA
- options). I do not include it with this distribution, since it's a
- commercial, copyrighted product of Symanthec. If you want to profile
- Tide by including profiler library, you HAVE TO recompile it
- (profiler, that is) the same way as ANSI library.
-
- All headers necessary to compile Tide are included, with exception to
- the ones that are part of Think C 5.0.4 development system.
-
- For people unfamiliar with Think C command argument styles:
- When run, Tide will present you with dialog box, in which you just
- need to type in switches, as explained in separate README file. Do
- not delete word "tide" that you'll see in the dialog box. The radio
- buttons on the left will allow you to select where your output is
- going to go - screen, screen and file, or screen and printer.
-
- I apologize in advance for ugliness of this approach, but I don't
- really have time for writing nice Mac-like GUI. Besides, I'm hoping
- that someone with more time, and maybe, PowerPC, can take over and
- write an application that will make people from any other platform
- drool :).
-
- Note that this Mac version is port of TTY variant of tide 1.3.3,
- not XTide 1.3.3
-
- The description of tide 1.3.3, it's usage and list of switches given
- in separate README file, which should be part of this distribution.
-
-
- I would also like to add that I will not be responsible for ANY damages
- arising from the use of this program, included, but not limited to,
- loss of property, loss of life and damages to others. Another words,
- if you use it, run aground as a result and lose your boat, it's your
- own problem. I would also point out that no single navigational aid
- should be used without exercising caution and common sense. I had
- spot-checked this program using Eldridge Tide and Pilot Book for 1996,
- for Boston Harbor. The results were very much the same, and I won't be
- surprised if it uses same UNIX program for tide calculations. Nevertheless,
- I recommend to check and double check the results of this program with
- your own observations, almanacs, etc. You have been warned.
-
-
- Contact Info
- ------------
-
- Mikhail Fridberg
- e-mail - fridberg@pfc.mit.edu
-
-
- Bugs
- ----
-
- No known Mac-specific bugs (yet). The bugs listed in README apply to this
- version as well.
-
- Acknowledgements
- ----------------
-
- Thanks to David Flater for writing tide for UNIX under GNU license.
-